<div class="clearfix">
<form class="form-horizontal" method="POST">
   
    
<fieldset>

<!-- Form Name -->
<legend>Usuario del profesor</legend>
 <?php iF(isset($msg)){?>
    <div class="alert alert-success"><a href="#" class="close" data-dismiss="alert">&times;</a> <?php echo $msg; ?> </div>
    <?php } ?>
 <?php iF(isset($errorMsg)){?>
    <div class="alert alert-error"><a href="#" class="close" data-dismiss="alert">&times;</a> <?php echo $errorMsg; ?> </div>
    <?php } ?>
<!-- Text input-->
<div class="control-group">
  <label class="control-label" for="usuario">Usuario</label>
  <div class="controls">
    <input id="usuario" name="usuario" type="text" placeholder="Nombre usuario" class="input-xlarge" required="" 
           value="<?php echo isset($usuario[0]->usuario)?$usuario[0]->usuario:'' ?>">
    
  </div>
</div>
<?php 
if(isset($usuario[0]->contrasena)):
?>
<!-- Select Basic -->
<div class="control-group">
  <label class="control-label" for="pass">Contraseña vieja</label>
  <div class="controls">
    <input id="pass" name="pass" type="password" placeholder="Contraseña actual" class="input-xlarge" required="" 
           value="">
  </div>
</div>
<?php endif; ?>
<!-- Text input-->
<div class="control-group">
  <label class="control-label" for="new_pass">Contraseña nueva</label>
  <div class="controls">
    <input id="new_pass" name="new_pass" type="password" placeholder="Nueva contraseña" class="input-xlarge" required="" 
           value="">
    
  </div>
</div>

<!-- Text input-->
<div class="control-group">
  <label class="control-label" for="new_pass_2">Repita contra seña nueva</label>
  <div class="controls">
    <input id="new_pass_2" name="new_pass_2" type="password" placeholder="mail" class="input-xlarge" required="" 
           value="">    
  </div>
</div>


<!-- Button -->
<div class="control-group">
  <label class="control-label" for="send"></label>
  <div class="controls">
    <button id="send" name="send" class="btn btn-success">Enviar</button>
  </div>
</div>

</fieldset>
</form>
</div>